package com.kylin.module.study.forms;

import java.util.Date;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;

public class CoursewareForm extends ActionForm {

     private static final long serialVersionUID = 1L;
    // Fields    
     private Long id;
	 private String  title;
	 private String  targetlang;
	 private FormFile  mediapath;
	 private String  translatation;
	 private String  content;
	 private String  language;
	 private String  createdby;
	 private Date  createdon;
	 private String  lastupdatedby;
	 private Date  lastupdatedon;
	 private Short  active;
	 private Integer  ordering;
	 private Integer  hits;
	 
	 private Long catarticleid;
     private Long catcoursewareid;
   
    // Property accessors
    
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return this.title;
    }
    
    /*
    * setter: Title
    *
    */
    public void setTitle(String title) {
        this.title = title;
    }      
    
    public String getTargetlang() {
        return this.targetlang;
    }
    
    public void setTargetlang(String targetlang) {
        this.targetlang = targetlang;
    }

    public FormFile getMediapath() {
		return mediapath;
	}

	public void setMediapath(FormFile mediapath) {
		this.mediapath = mediapath;
	}

	public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    public String getLanguage() {
        return this.language;
    }
    
    public void setLanguage(String language) {
        this.language = language;
    }
    public String getCreatedby() {
        return this.createdby;
    }
    
    public void setCreatedby(String createdby) {
        this.createdby = createdby;
    }
    public Date getCreatedon() {
        return this.createdon;
    }
    
    public void setCreatedon(Date createdon) {
        this.createdon = createdon;
    }
    public String getLastupdatedby() {
        return this.lastupdatedby;
    }
    
    public void setLastupdatedby(String lastupdatedby) {
        this.lastupdatedby = lastupdatedby;
    }
    public Date getLastupdatedon() {
        return this.lastupdatedon;
    }
    
    public void setLastupdatedon(Date lastupdatedon) {
        this.lastupdatedon = lastupdatedon;
    }
    public Short getActive() {
        return this.active;
    }
    
    public void setActive(Short active) {
        this.active = active;
    }
    public Integer getOrdering() {
        return this.ordering;
    }
    
    public void setOrdering(Integer ordering) {
        this.ordering = ordering;
    }
    public Integer getHits() {
        return this.hits;
    }
    
    public void setHits(Integer hits) {
        this.hits = hits;
    }
    
	
	// parent table: CatCourseware
	
    public Long getCatarticleid() {
		return catarticleid;
	}

	public void setCatarticleid(Long catarticleid) {
		this.catarticleid = catarticleid;
	}

	public Long getCatcoursewareid() {
		return catcoursewareid;
	}

	public void setCatcoursewareid(Long catcoursewareid) {
		this.catcoursewareid = catcoursewareid;
	}
	
		
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("\n title   =" + title );
		sb.append("\n targetlang   =" + targetlang );
		sb.append("\n mediapath   =" + mediapath );
		sb.append("\n translatation   =" + translatation );
		sb.append("\n content   =" + content );
		sb.append("\n language   =" + language );
		sb.append("\n createdby   =" + createdby );
		sb.append("\n createdon   =" + createdon );
		sb.append("\n lastupdatedby   =" + lastupdatedby );
		sb.append("\n lastupdatedon   =" + lastupdatedon );
		sb.append("\n active   =" + active );
		sb.append("\n ordering   =" + ordering );
		sb.append("\n hits   =" + hits );

  	  sb.append("\n catcoursewareid = " + catcoursewareid );	
		return sb.toString();
	}

	public String getTranslatation() {
		return translatation;
	}

	public void setTranslatation(String translatation) {
		this.translatation = translatation;
	}	
		
}